//
//  Calulator.swift
//  SwiftDemo
//
//  Created by 李国卿 on 2020/1/10.
//  Copyright © 2020 guoqing.li. All rights reserved.
//

import UIKit

class Calulator: NSObject {
    let a:Int
    let b:Int
    let result:Int
    init(a:Int,b:Int) {
        self.a = a;
        self.b = b;
        result = a+b;
        print("result---\(result)")
    }
    func total(c:Int) -> Int {
        print("total---\(result-c)")
        return result-c;
    }
    
}
